<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">
    <div class="ui-fluid">
        <div class="ui-g">
            <div class="ui-g-12">
                <div class="card ui-g-12">
                    <h3>基础交互信息</h3>
                    <div class="ui-g-1">
                        <p:outputLabel value="跳转类型"><strong style="color: red">*</strong></p:outputLabel>
                    </div>
                    <div class="ui-g-11">
                        <p:selectOneButton disabled="#{loanApplicationExportInfoBean.isView()}"
                                           value="#{loanApplicationExportInfoBean.$.launch}">
                            <f:selectItems
                                    value="#{loanApplicationExportInfoBean.dictionaries[DictionaryCode.EXPORT_ACTION_TYPE]}"
                                    var="dic"
                                    itemLabel="#{dic.name}" itemValue="#{dic.value1}"/>
                        </p:selectOneButton>
                    </div>

                    <div class="ui-g-1">
                        <p:outputLabel value="跳转tab"></p:outputLabel>
                    </div>
                    <div class="ui-g-11">
                        <p:selectOneRadio disabled="#{loanApplicationExportInfoBean.isView()}"
                                           value="#{loanApplicationExportInfoBean.$.action.launchParams.tab}">
                            <f:selectItem itemLabel="web" itemValue="web"/>
                            <f:selectItem itemLabel="我的" itemValue="my"/>
                        </p:selectOneRadio>
                    </div>

                    <div class="ui-g-1">
                        <p:outputLabel value="跳转标题"/>
                    </div>
                    <div class="ui-g-11">
                        <p:inputText
                                value="#{loanApplicationExportInfoBean.$.targetTitle}"
                                disabled="#{loanApplicationExportInfoBean.isView()}"/>
                    </div>

                    <div class="ui-g-1">
                        <p:outputLabel value="跳转链接"/>
                    </div>
                    <div class="ui-g-11">
                        <p:inputText
                                value="#{loanApplicationExportInfoBean.$.targeturl}"
                                disabled="#{loanApplicationExportInfoBean.isView()}"/>
                    </div>
            </div>
            <div class="ui-g-12">
                <div class="card ui-g-12">
                    <h3>详细交互信息</h3>
                    <h:panelGroup id="interactionDetail">
                        <h:panelGroup>
                            <div class="ui-g-12 ui-md-2 ui-lg-3">
                                <p:outputLabel value="带协议头"/>
                            </div>
                            <div class="ui-g-12 ui-md-4 ui-lg-3">
                                <p:inputSwitch value="#{loanApplicationExportInfoBean.$.action.launchParams.withHead}"
                                               onLabel="是" offLabel="否"
                                               disabled="#{loanApplicationExportInfoBean.isView()}"/>
                            </div>
                            <div class="ui-g-12 ui-md-2 ui-lg-3">
                                <p:outputLabel value="显示工具栏"/>
                            </div>
                            <div class="ui-g-12 ui-md-4 ui-lg-3">
                                <p:inputSwitch value="#{loanApplicationExportInfoBean.$.action.launchParams.showToolbar}"
                                               onLabel="是" offLabel="否"
                                               disabled="#{loanApplicationExportInfoBean.isView()}"/>
                            </div>
                            <div class="ui-g-12 ui-md-2 ui-lg-3">
                                <p:outputLabel value="销毁原界面"/>
                            </div>
                            <div class="ui-g-12 ui-md-4 ui-lg-3">
                                <p:inputSwitch value="#{loanApplicationExportInfoBean.$.action.launchParams.clearTop}"
                                               onLabel="是" offLabel="否"
                                               disabled="#{loanApplicationExportInfoBean.isView()}"/>
                            </div>
                            <div class="ui-g-12 ui-md-2 ui-lg-3">
                                <p:outputLabel value="限制网络图片加载"/>
                            </div>
                            <div class="ui-g-12 ui-md-4 ui-lg-3">
                                <p:inputSwitch
                                        value="#{loanApplicationExportInfoBean.$.action.launchParams.canBlockNetworkImg}"
                                        onLabel="是" offLabel="否"
                                        disabled="#{loanApplicationExportInfoBean.isView()}"/>
                            </div>
                            <div class="ui-g-12 ui-md-2 ui-lg-3">
                                <p:outputLabel value="登录重新加载"/>
                            </div>
                            <div class="ui-g-12 ui-md-4 ui-lg-3">
                                <p:inputSwitch
                                        value="#{loanApplicationExportInfoBean.$.action.launchParams.reloadWhenLogin}"
                                        onLabel="是" offLabel="否"
                                        disabled="#{loanApplicationExportInfoBean.isView()}"/>
                            </div>
                            <div class="ui-g-12 ui-md-2 ui-lg-3">
                                <p:outputLabel value="html页面接管返回键的处理"/>
                            </div>
                            <div class="ui-g-12 ui-md-4 ui-lg-3">
                                <p:inputSwitch
                                        value="#{loanApplicationExportInfoBean.$.action.launchParams.takeOverBackPressed}"
                                        onLabel="是" offLabel="否" disabled="#{loanApplicationExportInfoBean.isView()}"/>
                            </div>
                            <div class="ui-g-12 ui-md-2 ui-lg-3">
                                <p:outputLabel value="resume和pause时回调页面"/>
                            </div>
                            <div class="ui-g-12 ui-md-4 ui-lg-3">
                                <p:inputSwitch
                                        value="#{loanApplicationExportInfoBean.$.action.launchParams.callbackWhenResumeAndPause}"
                                        onLabel="是" offLabel="否" disabled="#{loanApplicationExportInfoBean.isView()}"/>
                            </div>
                            <div class="ui-g-12 ui-md-2 ui-lg-3">
                                <p:outputLabel value="沉浸式"/>
                            </div>
                            <div class="ui-g-12 ui-md-4 ui-lg-3">
                                <p:inputSwitch
                                        value="#{loanApplicationExportInfoBean.$.action.launchParams.isTitleBarImmerse}"
                                        onLabel="是" offLabel="否" disabled="#{loanApplicationExportInfoBean.isView()}"/>
                            </div>
                            <div class="ui-g-12 ui-md-2 ui-lg-3">
                                <p:outputLabel value="显示标题栏"/>
                            </div>
                            <div class="ui-g-12 ui-md-4 ui-lg-3">
                                <p:inputSwitch value="#{loanApplicationExportInfoBean.$.action.launchParams.showTitle}"
                                               onLabel="是" offLabel="否"
                                               disabled="#{loanApplicationExportInfoBean.isView()}"/>
                            </div>

                            <div class="ui-g-12 ui-md-2 ui-lg-3">
                                <p:outputLabel value="注入xmiles_inject.css"/>
                            </div>
                            <div class="ui-g-12 ui-md-4 ui-lg-3">
                                <p:inputSwitch value="#{loanApplicationExportInfoBean.$.action.launchParams.injectCss}"
                                               onLabel="是" offLabel="否"
                                               disabled="#{loanApplicationExportInfoBean.isView()}"/>
                            </div>

                            <div class="ui-g-12 ui-md-2 ui-lg-3">
                                <p:outputLabel value="【我的】icon开启白色"/>
                            </div>
                            <div class="ui-g-12 ui-md-4 ui-lg-3">
                                <p:inputSwitch value="#{loanApplicationExportInfoBean.$.action.launchParams.isMyIconWhite}"
                                               onLabel="是" offLabel="否"
                                               disabled="#{loanApplicationExportInfoBean.isView()}"/>
                            </div>

                        </h:panelGroup>
                    </h:panelGroup>
                </div>
            </div>
        </div>
    </div>
    </div>
</ui:composition>